const db = uniCloud.database()
exports.main = async (event, context) => {
  const res = await db.collection('topics')
    .where({  
      type: 'pass'  
    })
    .orderBy('create_time', 'desc')
    .get()
  return res.data
}